package com.pet.platform.dto;

import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Min;
import java.math.BigDecimal;

@Data
public class ServiceDTO {
    private Long id;
    
    @NotBlank(message = "服务名称不能为空")
    private String name;
    
    @NotBlank(message = "服务类别不能为空")
    private String category;
    
    private String description;
    
    @NotNull(message = "价格不能为空")
    @Min(value = 0, message = "价格不能小于0")
    private BigDecimal price;
    
    @Min(value = 0, message = "服务时长不能小于0")
    private Integer duration;
    
    private String imageUrl;
    
    private Integer status;
} 